<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改基本参数设置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-setting-edit" th:object="${tbParamSetting}">
            <input name="${pkColumn.javaField}" th:field="*{id}" type="hidden">
            <h4 class="form-header h4">3D扫描信息</h4>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>起始角度：</label>
                        <div class="col-sm-8">
                            <input name="startAngle" placeholder="请输入起始角度" class="form-control" type="number" maxlength="30" th:field="*{startAngle}" required>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>终止角度：</label>
                        <div class="col-sm-8">
                            <input name="endAngle" placeholder="请输入终止角度" class="form-control" type="number" maxlength="30" th:field="*{endAngle}" required>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>旋转速度：</label>
                        <div class="col-sm-8">
                            <input name="speed" placeholder="请输入旋转速度" class="form-control" type="number" maxlength="30" th:field="*{speed}" required>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>最高点坐标数：</label>
                        <div class="col-sm-8">
                            <input name="hCoordinateCount" placeholder="请输入旋转速度" class="form-control" type="number" maxlength="30" th:field="*{hCoordinateCount}" required>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/setting";
        $("#form-setting-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-setting-edit').serialize());
            }
        }
    </script>
</body>
</html>